home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Libraries / SAT 2.4.0 / SAT / Add-ons / Graphic effects / Headers / MiscGraphics.h < prev    next >
Encoding:
Text File  |  1997-03-01  |  1.7 KB  |  49 lines  |  [TEXT/KAHL]

  1. //• MiscGraphics;
  2.  
  3. /*Miscellaneous utility routines that I developed while writing Solitaire House,*/
  4. /*mostly rather simple graphic effects.*/
  5.  
  6. #include <SAT.h>
  7.  
  8. /**** Some QuickDraw-related utilities: ****/
  9.  
  10. pascal RGBColor MakeRGBColor(short r,short g,short b);
  11. pascal short RectWidth(Rect r);
  12. pascal short RectHeight(Rect r);
  13.  
  14. /*Is smallR completely within bigR?*/
  15. pascal Boolean RectInsideRect(Rect smallR, Rect bigR);
  16.  
  17. /*Draw a string centered within the box.*/
  18. pascal void StringCenter(Str255 aString, Rect box, Boolean truncate, short shadow);
  19.  
  20. /*Wipes for using as transitions after changing gSAT.offScreen.*/
  21. pascal void WipeIn(long ticks);
  22. pascal void WipeOut(long ticks);
  23.  
  24. /*Copy the contents of one SATPort to another.*/
  25. pascal void CopyScreen(SATPort fromScreen, SATPort toScreen);
  26.  
  27. /*Make a zoom animation*/
  28. pascal void ZoomRects(Rect fromRect, Rect toRect);
  29.  
  30. /*Copy srcFace to destFace. If destFace is nil, a new face is created, otherwise srcFace is*/
  31. /*copied to the existing dstFace.*/
  32. pascal void SATDupFace(FacePtr *destFace, FacePtr srcFace);
  33.  
  34. /**** Pattern and cursor utilities. ****/
  35.  
  36. /*These pattern utilities replaces the old ones in the SAT lib. These are much easier to use*/
  37. /*and just as compatible. The point with them is to have glue routies that make it really*/
  38. /*easy to stay compatible with all old Macs, even old MacPlusses!*/
  39.  
  40. pascal PixPatHandle SATGetPattern(short patID);
  41. pascal void SATForePattern(PixPatHandle pat);
  42. pascal void SATBackPattern(PixPatHandle pat);
  43. pascal void SATFillRect(Rect r, PixPatHandle pat);
  44. pascal void SATDisposePattern(PixPatHandle pat);
  45. pascal CursHandle SATGetCursor(short id);
  46. pascal void SATSetCursor(CursHandle curs);
  47. pascal void SATDisposeCursor(CursHandle curs);
  48.  
  49.